package com.aspose.cells;

class zxt {
   FormatCondition a;
   int b = -1;
   zbvr c;
   zrw d = null;
   int e;
   byte[] f;

   zxt(int var1, FormatCondition var2, int var3) {
      this.e = var1;
      this.a = var2;
      switch(var2.c) {
      case 0:
      case 1:
         this.d();
         if (this.d == null || this.d.a == null || this.d.a.length == var2.f.getCustom().length()) {
            this.b = var3;
         }
      case 2:
      case 3:
      case 4:
         break;
      default:
         this.d();
         this.f = var2.a();
         if (this.f != null) {
            this.b = var3;
         }
      }

   }

   boolean a() {
      return this.b > -1 && this.b < 3;
   }

   boolean b() {
      if (this.c != null) {
         return true;
      } else {
         switch(this.a.c) {
         case 0:
         case 1:
            return false;
         default:
            return true;
         }
      }
   }

   int c() {
      int var1 = 4;
      if (this.d != null) {
         var1 += this.d.d();
      }

      if (this.c != null) {
         var1 += 8 + zbvq.a(this.c);
      }

      return var1 > 4 ? var1 : 6;
   }

   private void d() {
      if (this.a.f != null) {
         this.d = new zrw(this.a.f);
         this.c = new zbvr();
         this.c.a(this.a.f);
         if (this.c.getCount() < 1) {
            this.c = null;
         }
      }

   }
}
